package com.tanhua.dubbo.api;

import com.tanhua.model.db.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @auther : 白月尘
 * @date : 17:15  2021/10/20
 */
public interface MovementApi {
    String save(Movement movement);

    List<Movement> randomMovements(int i);

    List<Movement> findByUserId(Integer page, Integer pageSize, Long userId);

    List<Movement> findByFriendId(Integer page, Integer pageSize, long userId);

    List<Movement> findByIds(Integer page, Integer pageSize, String[] strings);

    Movement findById(String id);

    void updateState(String movementId, int state);

    PageResult findMovements(Integer page, Integer pageSize, Long uid, Integer state);

    String updateReState(String[] message);

    String updateCommentState(String[] message);
}
